<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

{"commentList": [
<c:forEach items="${comment}" var="comment" varStatus="status">
	{
		"num":"<c:out value="${comment.num}"/>","boardNum":"<c:out value="${comment.boardNum}"/>"
		,"content":"<c:out value="${comment.content}"/>","regId":"<c:out value="${comment.regId}"/>"
		,"regDate":"<c:out value="${comment.regDate}"/>"
	}
<c:if test="${not status.last }">,</c:if>
</c:forEach>
]}